/**
 * @author baz
 */
package lib {
import flash.display.DisplayObjectContainer;
import flash.display.Sprite;

public class ObjectUtils {
    public static function showRegister(obj:DisplayObjectContainer):void {
        var cross:Sprite = new Sprite();
        cross.graphics.lineStyle(1, 0xFF0000, 0.5);
        cross.graphics.moveTo(-5, 5);
        cross.graphics.lineTo(5, -5);
        cross.graphics.moveTo(5, 5);
        cross.graphics.lineTo(-5, -5);
        cross.x = obj.x;
        cross.y = obj.y;

        if (obj.parent) {
            obj.parent.addChild(cross);
        } else {
            obj.addChild(cross);
        }
    }
}
}
